package _97综合练习;

public class Hero {
	
	//1.定义一个武将类：Hero，要求有如下属性： 
	//	武将编号 武将名 智力值 武力值 统帅值
	//要求：
	//	1).成员属性私有化；
	//	2).定义无参和全参的构造方法；
	//	3).为每个成员属性定义get和set方法；
	
	private int wujiangId;
	private String name;
	private int zhili;
	private int wuli;
	private int tongshuai;
	public int getWujiangId() {
		return wujiangId;
	}
	public void setWujiangId(int wujiangId) {
		this.wujiangId = wujiangId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getZhili() {
		return zhili;
	}
	public void setZhili(int zhili) {
		this.zhili = zhili;
	}
	public int getWuli() {
		return wuli;
	}
	public void setWuli(int wuli) {
		this.wuli = wuli;
	}
	public int getTongshuai() {
		return tongshuai;
	}
	public void setTongshuai(int tongshuai) {
		this.tongshuai = tongshuai;
	}
	public Hero(int wujiangId, String name, int zhili, int wuli, int tongshuai) {
		super();
		this.wujiangId = wujiangId;
		this.name = name;
		this.zhili = zhili;
		this.wuli = wuli;
		this.tongshuai = tongshuai;
	}
	public Hero() {
		super();
	}
	
	
}
